package com.zju.DoctorGo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zju.DoctorGo.dto.NoticeFilterDTO;
import com.zju.DoctorGo.entity.Notice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NoticeMapper extends BaseMapper<Notice> {
    List<Notice> selectByFilter(@Param("filter") NoticeFilterDTO filter);

    List<Notice> selectByPatient(Long patientId);

    List<Notice> selectByDoctor(Long doctorId);
}
